﻿@model TS2015.Models.TbHuyen
@using Kendo.Mvc.UI

<div class="editor-label">
    <label for="MaHuyen">Mã Huyện/Quận: </label>
</div>
<div class="editor-field">
    @(Html.Kendo().TextBoxFor(m => m.MaHuyen))
</div>
<div class="editor-label">
    <label for="MaTinh">Tỉnh/TP: </label>
</div>
<div class="editor-field">
    @(Html.Kendo().DropDownListFor(m => m.MaTinh)
                    .AutoBind(false)
                  .OptionLabel("Chọn Tỉnh/TP...")
                  .DataTextField("TenTinh")
                  .DataValueField("MaTinh")
                  .DataSource(dataSource =>
                  {
                      dataSource.Read(read => read.Action("GetProvince", "RegistrationManagement")).
                      ServerFiltering(true);
                  })
    )
</div>

<div class="editor-label">
    <label for="TenHuyen">Huyện/Quận: </label>
</div>
<div class="editor-field">
    @(Html.Kendo().TextBoxFor(m => m.TenHuyen))
</div>
<script>
    $(document).on("click", "#btEdit", function (e) {
        $('#MaHuyen').attr('disabled', 'disabled');
        $('#MaHuyen').css('background-color', '#ddd');
    });
</script>

